from api.py01_login_api import Ihrm_Login_Api


def get_header():
    login_data={"mobile":"13800000002","password":"hm#qd@23!","isAgree":'true'}
    resp = Ihrm_Login_Api.login_api(login_data)
    # print(resp.json())
    token = resp.json().get('data')
    headers = {'Authorization':'Bearer'+' '+token}
    return headers


if __name__=='__main__':
    req_header = get_header()
    print(req_header)
